Skip to content

Fix: Escape backslashes in escapePath#11226

Merged
slax57 merged 1 commit intomasterfrom
fix-escape-path-escaping
Mar 31, 2026
Merged

Fix: Escape backslashes in escapePath#11226
slax57 merged 1 commit intomasterfrom
fix-escape-path-escaping

Conversation

@WiXSL
Copy link
Copy Markdown
Collaborator

@WiXSL WiXSL commented Mar 31, 2026

Summary

  • make escapePath escape backslashes before escaping parentheses
  • add focused regression tests

Why

GitHub code scanning reports alert #1 (Incomplete string escaping or encoding) on escapePath.

The previous implementation escaped parentheses but left backslashes untouched.

Testing

  • yarn test-unit --runTestsByPath packages/ra-core/src/util/escapePath.spec.ts

@slax57 slax57 added this to the 5.14.6 milestone Mar 31, 2026
@slax57 slax57 merged commit 92b4c55 into master Mar 31, 2026
15 checks passed
@slax57 slax57 deleted the fix-escape-path-escaping branch March 31, 2026 14:37
@slax57 slax57 changed the title Escape backslashes in escapePath Fix: Escape backslashes in escapePath Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants